package com.minshenglife.zanzan.dao.power;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.minshenglife.commons.dal.EntityDao;
import com.minshenglife.commons.dal.MyBatisRepository;
import com.minshenglife.zanzan.entity.User;
import com.minshenglife.zanzan.entity.power.RankPower;
/**
 * 用户权限
 * @author wangpeng
 *
 */
@Repository
@MyBatisRepository
public interface UserPowerDao extends EntityDao<User> {
	
	/**
	 * 查询全部用户
	 * @return
	 */
	public List<User> selectAll();
	
	/**
	 * 分页查询用户
	 * @param map
	 * @return
	 */
	public List<RankPower> findAllUser(Map<String,Object> map);
	
	/**
	 * 查询用户总数
	 * @return
	 */
	public Long countUserAll();
	
	/**
	 * 根据名字查询用户
	 * @return
	 */
	public List<RankPower> findUserName(Map<String ,Object> map);
	
	/**
	 * 根据员工号查询指定用户
	 * @return
	 */
	public User findUserId(Map<String ,Object> map);
	
}
